package com.victor.entity.group;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.victor.entity.Jingqulist;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 团游景区和旅游公司关系表（团游表）
 * 
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "t_grouptour")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GroupTour {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;// 主键id,
	
	@Column(name = "classid", length = 50)
	private String classid;// 分类id

	@Column(name = "jqid", length = 50)
	private String jqid;// 景区表id

	@Column(name = "lycompanyid", length = 50)
	private String lycompanyid;// 旅游公司表id

	@Column(name = "t_name", length = 50)
	private String t_name;// 团游名称

	@Column(name = "t_starttime", length = 50)
	private String t_starttime;// 开始时间

	@Column(name = "t_endtime", length = 50)
	private String t_endtime;// 结束时间

	@Column(name = "t_price", length = 50)
	private String t_price;// 团游价格

	@Column(name = "t_introduce", length = 50)
	private String t_introduce;// 团有景区简介
	
	@Column(name = "city", length = 50)
	private String city;// 团有市
	
	@Column(name = "totalnum", length = 50)
	private String totalnum;// 总人数
	
	@Transient
	private String collection;

	@Transient
	private List<GroupTourPhoto> groupTourPhotos;// 团游介绍图片表

	@Transient
	private Jingqulist jingqumsg;

	@Transient
	private Lycompany lycompany;
	
}
